
/* 第二个投票活动样式 */


/* 活动头部横幅 */
.event-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    color: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
}

.event-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.event-banner .event-banner-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.event-banner .event-banner-content .event-status {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-banner .event-banner-content .event-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.event-banner .event-banner-content .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-banner .event-banner-content .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.event-banner .event-banner-content .event-actions {
    display: flex;
    gap: 1rem;
}

/* 侧边栏 */
.event-banner .sidebar {
    width: 300px;
    flex-shrink: 0;
}

.event-banner .sidebar .sidebar-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-banner .sidebar .sidebar-title {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}


/* 主内容区布局 */
.content-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-container .main-content {
    flex: 1;
}


/* 活动详情卡片 */
.content-container .main-content .event-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.content-container .main-content .event-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.content-container .main-content .event-card .event-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-container .main-content .event-card .event-description p {
    margin-bottom: 1rem;
}

.content-container .main-content .event-card .event-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.content-container .main-content .event-card .reward-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.content-container .main-content .event-card .reward-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.content-container .main-content .event-card .reward-item:last-child {
    border-bottom: none;
}

.content-container .main-content .event-card .reward-item .reward-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.content-container .main-content .event-card .reward-item .reward-rank.first {
    background-color: var(--warning);
}

.content-container .main-content .event-card .reward-item .reward-rank.second {
    background-color: #94A3B8;
}

.content-container .main-content .event-card .reward-item .reward-rank.third {
    background-color: #D97706;
}

.content-container .main-content .event-card .reward-item .reward-details {
    flex: 1;
}

.content-container .main-content .event-card .reward-item .reward-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.content-container .main-content .event-card .reward-item .reward-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* 文章列表 */
.content-container .main-content .articles-filter {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.content-container .main-content .articles-filter .filter-title {
    font-weight: 600;
    margin: 0;
}

.content-container .main-content .articles-filter .filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.content-container .main-content .articles-filter .view-controls {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.content-container .main-content .articles-filter .view-btn {
    background-color: transparent;
    border: none;
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container .main-content .articles-filter .view-btn:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

.content-container .main-content .articles-filter .view-btn.active {
    background-color: var(--primary);
    color: white;
}

.content-container .main-content .articles-filter .sort-select {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background-color: var(--light-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.content-container .main-content .articles-filter .search-box {
    position: relative;
}

.content-container .main-content .articles-filter .search-input {
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background-color: var(--light-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 220px;
}

.content-container .main-content .articles-filter .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}


/* 列表展示公共部分 */
.content-container .main-content .article-votes {
    width: 100px;
    flex-shrink: 0;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
    padding: 1rem;
}

.content-container .main-content .votes-count {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.content-container .main-content .votes-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

.content-container .main-content .vote-btn {
    margin-top: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.content-container .main-content .vote-btn:hover {
    background-color: var(--primary-dark);
}

.content-container .main-content .vote-btn.voted {
    background-color: var(--success);
}

.content-container .main-content .vote-btn.voted:hover {
    background-color: #059669;
}

.content-container .main-content .article-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.content-container .main-content .article-image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.content-container .main-content .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-container .main-content .article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-container .main-content .article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.content-container .main-content .article-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.content-container .main-content .article-title a:hover {
    color: var(--primary);
}

.content-container .main-content .article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.content-container .main-content .article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.content-container .main-content .article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-container .main-content .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
}

.content-container .main-content .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-container .main-content .article-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 列表视图样式 */
.content-container .main-content .articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-container .main-content .articles-list .article-card.list-view {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
}

.content-container .main-content .articles-list .article-card.list-view:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* 网格视图样式 */
.content-container .main-content .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-container .main-content .article-card.grid-view {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-container .main-content .article-card.grid-view:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.content-container .main-content .article-card.grid-view .article-image {
    width: 100%;
    height: 180px;
    border-radius: 0;
}

.content-container .main-content .article-card.grid-view .article-content {
    flex-direction: column;
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-container .main-content .article-card.grid-view .article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-container .main-content .article-card.grid-view .article-excerpt {
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
    flex: 1;
}

.content-container .main-content .article-card.grid-view .article-votes-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.content-container .main-content .article-card.grid-view .article-votes {
    width: auto;
    background-color: transparent;
    flex-direction: row;
    border-right: none;
    padding: 0;
    gap: 0.5rem;
}

.content-container .main-content .article-card.grid-view .vote-btn {
    margin-top: 0;
    width: auto;
}

/* 摘要视图样式 */
.content-container .main-content .articles-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-container .main-content .article-card.summary-view {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    padding: 1.5rem;
}

.content-container .main-content .article-card.summary-view:hover {
    box-shadow: var(--shadow-hover);
}

.content-container .main-content .article-card.summary-view .summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.content-container .main-content .article-card.summary-view .summary-title {
    flex: 1;
}

.content-container .main-content .article-card.summary-view .article-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-container .main-content .article-card.summary-view .summary-votes {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.content-container .main-content .article-card.summary-view .article-votes {
    width: auto;
    background-color: transparent;
    flex-direction: row;
    border-right: none;
    padding: 0;
    gap: 0.5rem;
}

.content-container .main-content .article-card.summary-view .article-excerpt {
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
}

.content-container .main-content .article-card.summary-view .summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* 分页 */
.pagination-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination-container .pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination-container .pagination .page-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-container .pagination .page-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination-container .pagination .page-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-container .pagination .page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* 倒计时 */
.sidebar-card .countdown {
    text-align: center;
    padding: 1rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.sidebar-card .countdown .countdown-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.sidebar-card .countdown .countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.sidebar-card .countdown .countdown-timer .timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-card .countdown .countdown-timer .timer-value {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-card .countdown .countdown-timer .timer-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}


/* 参与按钮 */
.event-banner .btn-participate {
    background-color: var(--secondary);
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.event-banner .btn-participate:hover {
    background-color: #DB2777;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* 模态框样式 */
.modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content .modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-content .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-content .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-content .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
}

.modal-content .modal-footer .btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
}

.modal-content .modal-header .btn-close {
    background-color: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-content .modal-footer .btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.modal-content .modal-footer .btn-secondary:hover {
    background-color: var(--light-bg);
}

.modal-content .modal-footer .btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.modal-content .modal-footer .btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 文章选择列表 */
.modal-content .modal-body .my-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content .modal-body .my-article-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.modal-content .modal-body .my-article-item:hover {
    border-color: var(--primary-light);
    background-color: rgba(59, 130, 246, 0.03);
}

.modal-content .modal-body .my-article-item.selected {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.modal-content .modal-body .article-checkbox {
    margin-right: 1rem;
}

.modal-content .modal-body .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-content .modal-body .my-article-info {
    flex: 1;
}

.modal-content .modal-body .my-article-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.modal-content .modal-body .my-article-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.modal-content .modal-body .no-articles {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.modal-content .modal-body .no-articles i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-light);
}

.modal-content .modal-body .create-new-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.modal-content .modal-body .create-new-link:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .content-container {
        flex-direction: column;
    }

    .event-banner .sidebar {
        width: 100%;
    }

    .event-banner .sidebar .sidebar-cards-container {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .event-banner .sidebar .sidebar-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .event-banner {
        padding: 1.5rem;
    }

    .event-banner .event-banner-content .event-title {
        font-size: 1.75rem;
    }

    .event-banner .event-banner-content .event-actions {
        flex-wrap: wrap;
    }

    .content-container .main-content .article-card.list-view {
        flex-direction: column;
    }

    .content-container .main-content .article-votes {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        flex-direction: row;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .content-container .main-content .vote-btn {
        margin-top: 0;
        width: auto;
    }

    .content-container .main-content .article-content {
        flex-direction: column;
        padding: 1rem;
    }

    .content-container .main-content .article-image {
        width: 100%;
        height: 180px;
    }

    .content-container .main-content .articles-filter .search-input {
        width: 160px;
    }

    .content-container .main-content .articles-filter .filter-controls {
        flex-wrap: wrap;
    }

    .content-container .main-content .article-card.summary-view .summary-header {
        flex-direction: column;
    }

    .content-container .main-content .article-card.summary-view .summary-votes {
        margin-left: 0;
        margin-top: 1rem;
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .event-banner .event-banner-content .event-meta {
        gap: 1rem;
    }

    .content-container .main-content .articles-filter .filter-controls {
        flex-direction: column;
        width: 100%;
    }

    .content-container .main-content .articles-filter .search-input {
        width: 100%;
    }

    .content-container .main-content .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sidebar-card .countdown .countdown-timer .timer-value {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .content-container .main-content .article-card.summary-view .summary-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
